#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int main()
{
	int n = -10;
	//10000000000000000000000000001010 - 原码
	//11111111111111111111111111110101 - 反码
	//11111111111111111111111111110110 - 补码
	int r = n << 1;
	//11111111111111111111111111101100 - (左边抛弃，右边补0)补码
	//10000000000000000000000000010011 - 反码
	//10000000000000000000000000010100 - 原码
	printf("r = %d\n", r);
	printf("n = %d\n", n);
	return 0;
}